class PagedDataModel<RowType> {
  final int total;
  final List<RowType> rows;

  PagedDataModel(total, rows)
      : total = total ?? 0,
        rows = rows ?? <RowType>[];

  Map<String, dynamic> toJson() => {"total": total, "rows": rows};
}
